package com.zjj.userservice.api;

import com.github.pagehelper.PageInfo;
import com.zjj.userservice.model.User;
import com.zjj.userservice.service.impl.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author: zhaojj
 * @create: 2019-07-15 16:47
 **/
@RestController("/user")
public class UserApi {
    @Autowired
    UserService userService;
    @RequestMapping(value = "/getUserList",method = RequestMethod.GET)
    public PageInfo<User> getUserList(User user, int pageNum, int pageSize){
        return userService.getUserList(user,pageNum,pageSize);
    }
}
